import Vue from "vue"
Vue.directive("goBack",{
    inserted(el,binding){
        let self = binding.value.instance._self
        el.onclick = ()=>{
            self.$router.go(-1)
        }
    }
})


